<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>综合实践1-数据库与Web开发基础</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #f8f9fa;
        }
        .hero-section {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            padding: 80px 0;
            text-align: center;
        }
        .feature-card {
            transition: transform 0.3s;
            height: 100%;
        }
        .feature-card:hover {
            transform: translateY(-10px);
        }
        .feature-icon {
            font-size: 48px;
            margin-bottom: 20px;
        }
        .footer {
            background-color: #343a40;
            color: white;
            padding: 30px 0;
            margin-top: 50px;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <div class="container">
            <a class="navbar-brand" href="/">数据库与Web开发基础</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link active" href="/">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/users">用户管理</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- 主要内容 -->
    <div class="hero-section">
        <div class="container">
            <h1 class="display-4 fw-bold">数据库与Web开发基础</h1>
            <p class="lead">Spring Boot + MyBatis + MySQL 基础实践项目</p>
            <a href="/users" class="btn btn-light btn-lg mt-3">进入用户管理系统</a>
        </div>
    </div>

    <!-- 功能特点 -->
    <div class="container my-5">
        <h2 class="text-center mb-5">项目特点</h2>
        <div class="row">
            <div class="col-md-4 mb-4">
                <div class="card feature-card h-100 shadow-sm">
                    <div class="card-body text-center">
                        <div class="feature-icon text-primary">🗄️</div>
                        <h4 class="card-title">数据库操作</h4>
                        <p class="card-text">使用MyBatis框架实现MySQL数据库的增删改查操作，包括分页查询和事务管理。</p>
                    </div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="card feature-card h-100 shadow-sm">
                    <div class="card-body text-center">
                        <div class="feature-icon text-success">🌐</div>
                        <h4 class="card-title">Web接口</h4>
                        <p class="card-text">基于Spring Boot框架提供RESTful API接口，支持JSON数据格式，便于前后端分离开发。</p>
                    </div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="card feature-card h-100 shadow-sm">
                    <div class="card-body text-center">
                        <div class="feature-icon text-warning">🛠️</div>
                        <h4 class="card-title">开发工具</h4>
                        <p class="card-text">使用Maven进行项目管理，集成开发工具和热部署功能，提高开发效率。</p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 技术栈 -->
    <div class="container my-5 bg-light p-4 rounded">
        <h2 class="text-center mb-4">技术栈</h2>
        <div class="row">
            <div class="col-md-3 mb-3 text-center">
                <div class="p-3">
                    <h5>Spring Boot</h5>
                    <p>简化Spring应用开发的框架</p>
                </div>
            </div>
            <div class="col-md-3 mb-3 text-center">
                <div class="p-3">
                    <h5>MyBatis</h5>
                    <p>优秀的持久层框架</p>
                </div>
            </div>
            <div class="col-md-3 mb-3 text-center">
                <div class="p-3">
                    <h5>MySQL</h5>
                    <p>流行的关系型数据库</p>
                </div>
            </div>
            <div class="col-md-3 mb-3 text-center">
                <div class="p-3">
                    <h5>Bootstrap</h5>
                    <p>前端UI框架</p>
                </div>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <h5>数据库与Web开发基础</h5>
                    <p>这是一个用于学习和实践的项目，展示了如何使用Spring Boot和MyBatis进行数据库操作和Web开发。</p>
                </div>
                <div class="col-md-3">
                    <h5>快速链接</h5>
                    <ul class="list-unstyled">
                        <li><a href="/" class="text-white">首页</a></li>
                        <li><a href="/users" class="text-white">用户管理</a></li>
                    </ul>
                </div>
                <div class="col-md-3">
                    <h5>联系方式</h5>
                    <p>邮箱: yinfangyan@swu.edu.com</p>
                </div>
            </div>
            <hr class="bg-white">
            <div class="text-center">
                <p class="mb-0">&copy; 2025 综合实践1-数据库与Web开发基础. 保留所有权利.</p>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>